/**
 * Created by kangdaye on 16/6/5.
 */

//Main
app.controller('orderDetailCtr',["$scope","$rootScope","$stateParams","ngDialog","orderListCache","orderListService", function($scope,$rootScope,$stateParams,ngDialog,orderListCache,orderListService) {
    $scope.orderDetailData = {};
    $scope.gridOptions = {
        columnDefs   : orderListCache.detailListHeader,
        data         : [],
        showPage     : false
    };

    orderListService.details($stateParams,function(data){
        $scope.orderDetailData = data.data;
        $scope.gridOptions.data = data.data.goodsList
    })

}]);
